bbca1afbe014a42d958e60537fc8a286e34369ab,plugins/com.aptana.ruby.launching/src/com/aptana/ruby/launching/RubyLaunchingPlugin.java,RubyLaunchingPlugin,getGemPaths,#IProject#,260

Before Change



		if (!rubyToGemPaths.containsKey(rubyPathString))
		{
			IPath gemBinPath = ExecutableUtil.find(GEM_COMMAND, false, null, wd);
			String gemCommand = GEM_COMMAND;
			if (gemBinPath != null)
			{
				gemCommand = gemBinPath.toOSString();
			}
			// FIXME Will this actually behave properly with RVM?
			// FIXME Not finding my user gem path on Windows...

After Change


	{
		// FIXME this is including every single gem! We should narrow the list down based on Gemfile in project root if
		// we can!
		IPath wd = (project == null ? null : project.getLocation());
		IPath rubyPath = rubyExecutablePath(wd);
		String rubyPathString = rubyPath == null ? RUBY : rubyPath.toOSString();

		if (!rubyToGemPaths.containsKey(rubyPathString))
		{
			IPath gemBinPath = getBinaryScriptPath(GEM_COMMAND, wd);
			String gemCommand = gemBinPath == null ? GEM_COMMAND : gemBinPath.toOSString();
			// FIXME Will this actually behave properly with RVM?
			// FIXME Not finding my user gem path on Windows...